package com.fengmi.service;

import com.fengmi.dto.GoodsDTO;
import com.fengmi.dto.PageDTO;
import com.fengmi.entity.MallGoods;
import com.fengmi.view.ViewGoodsInfo;
import com.fengmi.vo.PageResultVO;
import com.fengmi.vo.ResultVO;

/**
 * @Author 123
 * @Date 2022/2/9 11:30
 * @Version 1.0
 */

public interface GoodsService {
    // 分页及条件查询商品信息
    public PageResultVO<MallGoods> findGoodsByPageAndWhere(PageDTO<MallGoods> pageDTO);


    //
    public PageResultVO<ViewGoodsInfo> findGoodsByPage(PageDTO<MallGoods> pageDTO);


    //添加商品
    public ResultVO save(GoodsDTO goodsDTO);
}
